﻿using System.Threading.Tasks;

namespace Colorful.Furniture.MpManagement;

/// <summary>
///  访问token
/// </summary>
public interface IWechatMpExtensions
{
    /// <summary>
    ///  获取令牌
    /// </summary>
    /// <returns></returns>
    Task<string> GetAccessTokenAsync();

    /// <summary>
    ///  获取令牌
    /// </summary>
    /// <param name="appId"></param>
    /// <param name="appSecret"></param>
    /// <returns></returns>
    Task<string> GetAccessTokenAsync(string appId, string appSecret);

    /// <summary>
    ///  微信JSON结果
    /// </summary>
    /// <param name="wxJsonResult"></param>
    void HandleWxJsonResult<T>(T wxJsonResult);
}